package com.yanqu.road.entity.rank.xrank;

import java.math.BigInteger;

public class XChannelRank {

    private int activityId;
    private int conditionType;
    private int channelId;
    private BigInteger value = BigInteger.ZERO;
    private String param = "";

    private long lastUpdateTime;

    public void replace(XChannelRank tmpUserRank, boolean valueChange) {
        setActivityId(tmpUserRank.getActivityId());
        setConditionType(tmpUserRank.getConditionType());
        setChannelId(tmpUserRank.getChannelId());
        setValue(tmpUserRank.getValue());
        if (valueChange) {
            setLastUpdateTime(tmpUserRank.getLastUpdateTime());
        }
    }

    public int getChannelId() {
        return channelId;
    }

    public void setChannelId(int channelId) {
        this.channelId = channelId;
    }

    public BigInteger getValue() {
        return value;
    }

    public void setValue(BigInteger value) {
        this.value = value;
    }

    public long getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(long lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getConditionType() {
        return conditionType;
    }

    public void setConditionType(int conditionType) {
        this.conditionType = conditionType;
    }

    public String getParam() {
        return param;
    }

    public void setParam(String param) {
        this.param = param;
    }
}
